﻿using AutoMapper;
using QuickCode.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuickCode.Application.DTO.Config
{
    /// <summary>
    /// AutoMapper配置文件
    /// </summary>
    public class AutoMapperConf:Profile
    {
        /// <summary>
        /// 构造函数中配置映射关系
        /// </summary>
        public AutoMapperConf()
        {
            CreateMap<user_main, UserDTO>();
            CreateMap<UserDTO, user_main>();
        }
    }
}
